const path = require('path');

let _url = '/workspace/src/a/b.html';
// console.log(path.dirname(_url));

console.log(path.resolve(__dirname, 'build'));